Communications system and method with multilevel connection identification

ABSTRACT

A communication system. One embodiment includes at least two functional blocks, wherein an first functional block communicates with a second functional block by establishing a connection, wherein a connection is a logical state in which data may pass between the first functional block and the second functional block. One embodiment includes a bus coupled to each of the functional blocks and configured to carry a plurality of signals. The plurality of signals includes a connection identifier that indicates a particular connection that a data transfer is part of, and a thread identifier that indicates a transaction stream that the data transfer is part of.

RELATED APPLICATIONS

This application is a continuation application of and claims the benefitof and incorporates in by reference the following U.S. application Ser.No. 10/789,942 filed Feb. 25, 2004, which is which is a continuation ofU.S. Pat. No. 6,725,313 filed Nov. 21, 2000, which is a continuation ofU.S. Pat. No. 6,182,183 filed Nov. 13,1998.

FIELD OF THE INVENTION

The present invention relates to a communication system to couplecomputing sub-systems.

BACKGROUND OF THE INVENTION

Electronic computing and communications systems continue to includegreater numbers of features and to increase in complexity. At the sametime, electronic computing and communications systems decrease inphysical size-and cost per function. Rapid advances in semiconductortechnology such as four-layer deep-sub-micron complimentary metal-oxidesemiconductor (CMOS) technology, have enabled true “system-on-a-chip”designs. These complex designs may incorporate, for example, one or moreprocessor cores, a digital signal processing (DSP) core, severalcommunications interfaces, and graphics support in application-specificlogic. In some systems, one or several of these extremely complex chipsmust communicate with each other and with other system components.Significant new challenges arise in the integration, verification andtesting of such systems because efficient communication must take placebetween sub-systems on a single complex chip as well as between chips ona system board. One benefit to having an efficient and flexible methodfor communication between sub-systems and chips is that systemcomponents can be reused in other systems with a minimum of redesign.

One challenge in the integration, verification and testing of modernelectronic systems stems from the fact that modern electronic systems inmany application areas have functionality, cost and form-factorrequirements that mandate the sharing of resources, such as memory,among multiple functional blocks, where functional blocks can be anyentity that interfaces to a communication system. In such systems, thefunctional blocks typically possess different performancecharacteristics and requirements, and the communications system andshared resources must simultaneously satisfy the total requirements. Keyrequirements of typical functional blocks are bandwidth and latencyconstraints that can vary over several orders of magnitude betweenfunctional blocks. In order to simultaneously satisfy constraints thatvary so widely, communications systems must provide high degrees ofpredictability.

Traditional approaches to the design of communications systems formodern, complex computer systems have various strengths and weaknesses.An essential aspect of such approaches is the communications interfacethat various sub-systems present to one another. One approach is todefine customized point-to-point interfaces between a sub-system andeach peer with which it must communicate. This customized approachoffers protocol simplicity, guaranteed performance, and isolation fromdependencies on unrelated sub-systems. Customized interfaces, however,are by their nature inflexible. The addition of a new sub-system with adifferent interface requires design rework.

A second approach is to define a system using standardized interfaces.Many standardized interfaces are based on pre-established computer busprotocols. The use of computer buses allows flexibility in systemdesign, since as many different functional blocks may be connectedtogether as required by the system, as long as the bus has sufficientperformance. It is also necessary to allocate access to the bus amongvarious sub-systems. In the case of computer buses, resource allocationis typically referred to as arbitration.

One disadvantage of computer buses is that each sub-system or componentconnected to the bus is constrained to use the protocol of the bus. Insome cases, this limits the performance of the sub-system. For example,a sub-system may be capable of handling multiple transaction streamssimultaneously, but the bus protocol is not capable of fully supportingconcurrent operations. In the case of a sub-system handling multipletransaction streams where each transaction stream has orderingconstraints, it is necessary for the sub-system to identify eachincrement of data received or transmitted with a certain part of acertain data stream to distinguish between streams and to preserve orderwithin a stream. This includes identifying a sub-system that is a sourceof a data transmission. Conventionally, such identification is limitedto a non-configurable hardware identifier that is generated by aparticular sub-system or component.

Current bus systems provide limited capability to preserve order in onetransaction stream by supporting “split transactions” in which data fromone transaction may be interleaved with data from another transaction inthe same stream. In such a bus, data is tagged as belonging to onestream of data, so that it can be identified even if it arrives out oforder. This requires the receiving sub-system to decode an arrivingaddress to extract the identification information.

Current bus systems do not support true concurrency of operations for asub-system that can process multiple streams of transactions over asingle interconnect, such as a memory controller that handles access toa single dynamic random access memory (DRAM) for several clients of theDRAM. A DRAM controller may require information related to a source ofan access request, a priority of an access request, orderingrequirements, etc. Current communication systems do not provide for suchinformation to be transmitted with data without placing an additionalburden on the sub-system to adapt to the existing protocol.

In order for many sub-systems to operate in conventional systems usingall of their capabilities, additional knowledge must be designed intothe sub-systems to provide communication over existing communicationsystems. This makes sub-systems more expensive and less flexible in theevent the sub-system is later required to communicate with newsub-systems or components. Existing communication approaches thus do notmeet the requirements of today's large, complex electronics systems.Therefore, it is desirable for a communications system and mechanism toallow sub-systems of a large, complex electronics system tointer-operate efficiently regardless of their varying performancecharacteristics and requirements.

SUMMARY OF THE INVENTION

One embodiment of the present invention includes a shared communicationsbus for providing flexible communication capability between electronicsub-systems. One embodiment includes a protocol that allows foridentification of data transmissions at different levels of detail asrequired by a particular sub-system without additional knowledge beingdesigned into the sub-system.

One embodiment of the invention includes several functional blocks,including at least one initiator functional block and one targetfunctional block. Some initiator functional blocks may also function astarget functional blocks. In one embodiment, the initiator functionalblock is coupled to an initiator interface module and the targetfunctional block is coupled to a target interface module. The initiatorfunctional block and the target functional block communicate to theirrespective interface modules and the interface modules communicate witheach other. The initiator functional block communicates with the targetfunctional block by establishing a connection, wherein a connection is alogical state in which data may pass between the initiator functionalblock and the target functional block.

One embodiment also includes a bus configured to carry multiple signals,wherein the signals include a connection identifier signal thatindicates a particular connection that a data transfer between aninitiator functional block and a target functional block is part of. Theconnection identifier includes information about the connection, such aswhich functional block is the source of a transmission, a priority of atransfer request, and transfer ordering information. One embodiment alsoincludes a thread identifier, which provides a subset of the informationprovided by the connection identifier. In one embodiment, the threadidentifier is an identifier of local scope that identifies transfersbetween an interface module and a connected functional block, where insome embodiments, an interface module connects a functional block to ashared communications bus.

The connection identifier is a an identifier of global scope thattransfers information between interface modules or between functionalblocks through their interface modules. Some functional blocks mayrequire all the information provided by the connection identifier, whileother functional blocks may require only the subset of informationprovided by the thread identifier.

BRIEF DESCRIPTION OF THE DRAWINGS

FIG. 1 is a block diagram of one embodiment of a complex electronicssystem according to the present invention.

FIG. 2 is an embodiment of an interface module.

FIG. 3 is an embodiment of an interface module.

FIG. 4 is an embodiment of a communications bus.

FIG. 5 is a timing diagram showing pipelined write transfers.

FIG. 6 is a timing diagram showing rejection of a first pipelined writetransfer and a successful second write transfer

FIG. 7 is a timing diagram showing interleaving of pipelined read andwrite transfers.

FIG. 8 is a timing diagram showing interleaved connections to a singletarget.

FIG. 9 is a timing diagram showing interleaved connections from a singleinitiator.

FIG. 10 is a block diagram of one embodiment of part of a computersystem.

FIG. 11 is one embodiment of a communications bus.

FIG. 12 is a block diagram of one embodiment of part of a computersystem.

DETAILED DESCRIPTION OF THE INVENTION

The present invention is a communications system and method for allowingmultiple functional blocks or sub-systems of a complex electronicssystem to communicate with each other through a shared communicationsresource, such as a shared communications bus. In one embodiment, acommunications protocol allows multiple functional block on a singlesemiconductor device to communicate to each other. In anotherembodiment, the communications protocol may be used to allow multiplefunctional blocks on different semiconductor devices to communicate toeach other through a shared off-chip communications resource, such as abus.

In one embodiment, the present invention is a pipelined communicationsbus with separate command, address, and data wires. Alternativeembodiments include a pipelined communications bus with multiplexedaddress, data, and control signals. The former embodiment offers higherperformance and simpler control than the latter embodiment at theexpense of extra wires. The former embodiment may be more appropriatefor on-chip communications, where wires are relatively less expensiveand performance requirements are usually higher. The latter embodimentoffers higher per-wire transfer efficiency, because it shares the samewires among address and data transfers. The latter embodiment may bemore appropriate for chip-to-chip communications between semiconductordevices, because package pins and board traces increase the per signalcost, while total required communications performance is usually lower.

FIG. 1 is a block diagram of a complex electronics system 100. Sharedcommunications bus 112 connects sub-systems 102, 104, 106, 108, and 110.Sub-systems are typically functional blocks including a interface modulefor interfacing to a shared bus. Sub-systems may themselves include oneor more functional blocks and may or may not include an integrated orphysically separate interface module. In one embodiment, the sub-systemsconnected by communications bus 112 are separate integrated circuitchips. Sub-system 104 is an application specific integrated circuit(ASIC) which, as is known, is an integrated circuit designed to performa particular function. Sub-system 106 is a dynamic random access memory(DRAM). Sub-system 108 is an erasable, programmable, read only memory(EPROM). Sub-system 110 is a field programmable gate array (FPGA).Sub-system 102 is a fully custom integrated circuit designedspecifically to operate in system 100. Other embodiments may containadditional sub-systems of the same types as shown, or other types notshown. Other embodiments may also include fewer sub-systems than thesub-systems shown in system 100. Integrated circuit 102 includessub-systems 102A, 102B, 102C, 102D and 102E. ASIC 104 includesfunctional blocks 101A, 104B and 104C. FPGA 110 includes functionalblocks 110A and 110B. A functional block may be a particular block oflogic that performs a particular function. A functional block may alsobe a memory component on an integrated circuit.

System 100 is an example of a system that may consist of one or moreintegrated circuits or chips. A functional block may be a logic block onan integrated circuit such as, for example, functional block 102E, or afunctional block may also be an integrated circuit such as fully customintegrated circuit 102 that implements a single logic function.

Shared communications bus 112 provides a shared communications busbetween sub-systems of system 100. Shared communication bus 114 providesa shared communications bus between sub-systems or functional blocks ona single integrated circuit. Some of the functional blocks shown areconnected to interface modules through which they send and receivesignals to and from shared communications bus 112 or sharedcommunications bus 114. Interconnect 115 is a local point-to-pointinterconnect for connecting interface modules to functional blocks.

Interface modules 120-127 are connected to various functional blocks asshown. In this embodiment, interface modules 120,122,123 and 124 arephysically separated from their connected functional block (A, B, C, Eand F, respectively). Interface modules 121, and 125-128 are essentiallypart of their respective functional blocks or sub-systems. Somefunctional blocks, such as 102D, do not require a dedicated interfacemodule. The arrangement of sub-systems, functional blocks and interfacemodules is flexible and is determined by the system designer.

In one embodiment there are four fundamental types of functional blocks.The four fundamental types are initiator, target, bridge, and snoopingblocks. A typical target is a memory device, a typical initiator is acentral processing unit (CPU). A typical bridge might connect sharedcommunications buses 112 and 114. Functional blocks all communicate withone another via shared communications bus 112 or shared communicationsbus 114 and the protocol of one embodiment. Initiator and targetfunctional blocks may communicate a shared communications bus throughinterface modules. An initiator functional block may communicate with ashared communications bus through an initiator interface module and atarget functional block may communicate with a shared communications busthrough a target interface module.

An initiator interface module issues and receives read and writerequests to and from functional blocks other than the one with which itis associated. In one embodiment, an initiator interface module istypically connected to a CPU, a digital signal processing (DSP) core, ora direct memory access (DMA) engine.

FIG. 2 is a block diagram of an embodiment of an initiator interfacemodule 800. Initiator interface module 800 includes clock generator 802,data flow block 806, arbitrator block 804, address/command decode block808, configuration registers 810, and synchronizer 812. Initiatorinterface module 800 is connected to a shared communications bus 814 andto an initiator functional block 816. In one embodiment, sharedcommunications bus 814 is a shared communications bus that connectssub-systems, as bus 112 does in FIG. 1.

Clock generator 802 is used to perform clock division when initiatorfunctional block 816 runs synchronously with respect to sharedcommunications bus 814 but at a different frequencies. When initiatorfunctional block 816 runs asynchronously with respect to communicationsbus 814, clock generator 802 is not used, but synchronizer 812 is used.Arbitrator block 804 performs arbitration for access to sharedcommunications bus 814. In one embodiment, a multi-level arbitrationscheme is used wherein arbitrator module 804 includes logic circuitsthat manage pre-allocated bandwidth aspects of first level arbitrationand also logic that manages second level arbitration. Data flow block806 includes data flow first-in-first-out (FIFO) buffers between sharedcommunications bus 814 and initiator functional block 816, in additionto control logic associated with managing a transaction between sharedcommunications bus 814 and initiator functional block 816. The FIFObuffers stage both the address and data bits transferred between sharedcommunications bus 814 and initiator functional block 816. In oneembodiment, shared communications bus 814 implements a memory mappedprotocol. Specific details of an underlying computer bus protocol arenot significant to the invention, provided that the underlying computerbus protocol supports some operation concurrency. A preferred embodimentof a bus protocol for use with the present invention is one thatsupports retry transactions or split transactions, because theseprotocols provide a mechanism to deliver operation concurrency byinterrupting a multi-cycle transaction to allow transfers belonging toother unrelated transactions to take place. These protocols allow forhigher transfer efficiencies because independent transactions may usethe bus while an initiator waits for a long latency target to returndata that has been previously requested by an initiator.

Address/command decode block 808 decodes an address on sharedcommunications bus 814 to determine if a write is to be performed toregisters associated with initiator functional block 816.Address/command decode block 808 also decodes incoming commands.Configuration registers 810 store bits that determine the state ofmodule 800, including bandwidth allocation and client address base. Oneregister 810 stores an identification (ID) which is a set of bitsuniquely identifying initiator functional block 816.

FIG. 3 is a block diagram of an embodiment of a target interface module900. Target interface module 900 is connected to shared communicationsbus 914 and to target functional block 918. Target interface module 900includes clock generator 902, data flow block 906, address/commanddecode block 908, synchronizer 912, and state registers in state controlblock 916. Blocks of target interface module 900 that are namedsimilarly to blocks of initiator module 800 function in substantiallythe same way as explained with respect to initiator block 800. Stateregisters and state control block 916 include registers that store, forexample, client address base and an identifier for target functionalblock 918.

In one embodiment, an initiator functional block such as initiatorfunctional block 816 may also act as a target functional block in thatit has the capability to respond to signals from other functional blocksor sub-systems as well as to initiate actions by sending signals toother functional blocks or sub-system.

FIG. 4 is a block diagram of a part of a computer system 1000 accordingto one embodiment. FIG. 4 is useful in illustrating multilevelconnection identification. System 1000 includes initiator functionalblock 1002, which is connected to initiator interface module 1004 byinterconnect 1010. Initiator interface module 1004 is connected totarget interface module 1006 by shared communications bus 1012. Targetinterface module 1006 is connected to target functional block 1008 by aninterconnect 1010. Typically, shared communications bus 1012 isanalogous to shared communications bus 112 of FIG. 1 or to sharedcommunications bus 114 of FIG. 1. Interconnects 1010 are typicallyanalogous to interconnect 115 of FIG. 1 in that they connect functionalblocks to interface modules and are point-to-point, rather than shared,interconnects. Interconnects 1010 are typically physically shorter thanshared communications bus 1012 because of their local nature. As will beexplained more fully below, system 1000 uses two different levels ofconnection identification depending upon the requirements of aparticular functional block. “Global” connection identificationinformation is sent on shared communications bus 1012, while “local”connection information, or thread identification information, is sent ininterconnects 1010.

FIG. 5 is a block diagram of one embodiment of a shared communicationsbus 1012. Shared communications bus 1012 is shown connected to entitiesA, B, C, D and E, which may be interface modules, functional blocks, ora combination of both. Shared communications bus 1012 is composed of aset of wires. Data wires 230 provide direct, high efficiency transportof data traffic between functional blocks on shared communications bus1012. In one embodiment, shared communications bus 1012 supports a busprotocol that is a framed, time division multiplexed, fully pipelined,fixed latency communication protocol using separate address, data andconnection identification wires. The bus protocol supports fine grainedinterleaving of transfers to enable high operation concurrency, and usesretry transactions to efficiently implement read transactions fromtarget devices with long or variable latency. Details of the arbitrationmethod used to access shared communications bus 1012 are not required tounderstand the present invention. The delay from when an initiatorfunctional block drives the command and address until the targetfunctional block drives the response is known as the latency of sharedcommunications bus 1012. The bus protocol supports arbitration amongmany initiator functional blocks and target functional blocks for accessto the bus. In the embodiment shown, arbitration for access to sharedcommunications bus 1012 is performed by an initiator interface module,such as module 1004 of FIG. 4. In other embodiments, arbitration isperformed by functional blocks directly, or by a combination ofinterface modules and functional blocks. In one embodiment, a bus grantlasts for one pipelined bus cycle. The protocol does not forbid a singlefunctional block from becoming a bus owner for consecutive bus cycles,but does require that the functional block successfully win arbitrationon consecutive cycles to earn the right.

Shared communications bus 1012 includes separate address, data, andcontrol wires. Other embodiments may include multiplexed address, data,and control signals that share a wire or wires. Such an embodiment wouldprovide high per-wire transfer efficiency because wires are shared amongaddress and data transfers. A non-multiplexed embodiment of sharedcommunications bus 1012 may be more appropriate for communicationbetween functional blocks on a single integrated circuit chip becausewires are relatively inexpensive and performance requirements areusually higher on a single integrated circuit chip.

Clock line 220 is a global signal wire that provides a time referencesignal to which all other shared communications bus 1012 signals aresynchronized. Reset line 222 is a global signal wire that forces eachconnected functional block into a default state from which systemconfiguration may begin. Command line 224 carries a multi-bit signaldriven by an initiator bus owner. In various embodiments, the multi-bitcommand signal may convey various types of information. For example, acommand signal may indicate a transfer type, information regardingduration of a connection, and expected initiator and target behaviorduring the connection. In one embodiment, the command signal includesone or more bits indicating the beginning and end of a connection. Inone embodiment, for example, one bit may indicate the status of aconnection. If the bit is zero, the current transfer is the finaltransfer in the connection. After the receipt of a zero connectionstatus bit, the next receipt of a connection status bit that is a logicone indicates that the transfer is the first in a newly openedconnection. Each subsequently received one connection status bit thenindicates that the connection is still open.

Supported transfer types in this embodiment include, but are not limitedto read and write transfers. Address lines 228 carry a multi-bit signaldriven by an initiator bus owner to specify the address of the object tobe read or written during the current transfer. Response lines 232 carrya multi-bit signal driven by a target to indicate the status of thecurrent transfer. Supported responses include, but are not limited tothe following responses. A NULL response indicates that the currenttransfer is to be aborted, presumably because the address does notselect any target. A data valid and accepted (DVA) response indicates,in the case of a read, that the target is returning requested data ondata lines 230. In the case of a write, a DVA response indicates thatthe target is accepting the provided data from data lines 230. A BUSYresponse indicates that the selected target has a resource conflict andcannot service the current request. In this case an initiator shouldreattempt the transfer again later. A RETRY response indicates that theselected target could not deliver the requested read data in time, butpromises to do so at a later time. In this case an initiator mustreattempt the transfer at a later time.

Connection identifier (CONNID) lines 226 carry a multi-bit signal drivenby an initiator bus owner to indicate which connection the currenttransfer is part of. A connection is a logical state, established by aninitiator, in which data may pass between the initiator and anassociated target. The CONNID typically transmits information includingthe identity of the functional block initiating the transfer andordering information regarding an order in which the transfer must beprocessed. In one embodiment, the information conveyed by the CONNIDincludes information regarding the priority of the transfer with respectto other transfers. In one embodiment the CONNID is a eight-bit code. Aninitiator interface module sends a unique CONNID along with an initialaddress transfer of a connection. Later transfers associated with thisconnection (for example, data transfers) also provide the CONNID valueso both sender and receiver (as well as any device monitoring transferson shared communications bus 1012) can unambiguously identify transfersassociated with the connection. One advantage of using a CONNID is thattransfers belonging to different transactions can be interleavedarbitrarily between multiple devices on a per cycle basis. In oneembodiment, shared communications bus 1012 implements a fully pipelinedprotocol that requires strict control over transaction ordering in orderto guarantee proper system operation. Without the use of a CONNID,ordering constraints within a particular transaction may be violatedbecause transfers associated with a particular connection are notidentified.

Because a first command may be rejected by a BUSY response while a latercommand is already in flight, it is essential to provide mechanisms thatallow full control over which commands complete. If such control is notpresent, ambiguous system behavior can result. For instance, if a singleinitiator interface module issues a sequence of dependent read and writecommands, a busy response to one of the commands could result in latercommands returning the wrong data. One solution to such problems is toavoid overlapping dependent commands. This solution, however, increasesthe latency of every dependent command in order to ensure properresults. The present invention uses a CONNID signal, in part, to allowoverlapping of dependent commands. Therefore, use of a CONNID improvessystem performance and efficiency. Another benefit of the CONNID of thepresent invention is that communication system predictability isenhanced because it allows a shared functional block to respond torequests based upon quality of service guarantees that may vary betweenconnections. For example, data requested to operate a computer displaycannot tolerate unpredictable delay because delay causes the display toflicker. Therefore, the CONNID may be used to prioritize data requestsfrom a display controller so that requests from the display controllerto a common resource are serviced before other requests. The presentinvention also allows for flexible reconfiguration of the CONNID toretune system performance.

FIG. 6 is a timing diagram of a pipelined write transaction consistingof two write transfers on shared communications bus 1012. Reference mayalso be made to FIG. 5. A single pipelined bus transfer, as shown inFIG. 6, includes an arbitration cycle (not shown), followed by acommand/address/CONNID (CMD 324/ADDR 328/CONNID 326) cycle (referred toas a request, or REQ cycle), and completed by a DATA 330/RESP 342 cycle(referred to as a response, or RESP cycle). In one embodiment, thenumber of cycles between a REQ cycle and a RESP cycle is chosen atsystem implementation time based upon the operating frequency and modulelatencies to optimize system performance. The REQ-RESP latency, in oneembodiment, is two cycles and is labeled above the DATA 330 signal lineon FIG. 6. Therefore, a complete transfer time includes four sharedcommunications bus 1012 cycles, arbitration, request, delay andresponse.

Two transfers are shown in FIG. 6. On cycle 1, initiator E drives REQfields 340 to request a WRITE transfer to address ADDRE0. This processis referred to as issuing the transfer request. In one embodiment, asingle target is selected to receive the write data by decoding anexternal address portion of ADDRE0. On cycle 3 (a REQ-RESP latencylater), initiator E drives write data DATAE0 on the DATA wires;simultaneously, the selected target A drives RESP wires 342 with the DVAcode, indicating that A accepts the write data. By the end of cycle 3,target A has acquired the write data, and initiator E detects thattarget A was able to accept the write data; and the transfer has thuscompleted successfully.

Meanwhile (i.e. still in cycle 3), initiator E issues a pipelined WRITEtransfer (address ADDRE1) to target A. The write data and targetresponse for this transfer both occur on cycle 5, where the transfercompletes successfully. Proper operation of many systems and sub-systemsrely on the proper ordering of related transfers. Thus, proper systemoperation may require that the cycle 3 WRITE complete after the cycle 1WRITE transfer. In FIG. 6, the CONNID field conveys crucial informationabout the origin of the transfer that can be used to enforce properordering. A preferred embodiment of ordering restrictions is that theinitiator and target collaborate to ensure proper ordering, even duringpipelined transfers. This is important, because transfer pipeliningreduces the total latency of a set of transfers (perhaps a singletransaction), thus improving system performance (by reducing latency andincreasing usable bandwidth).

According to the algorithm of one embodiment:

-   -   1. An initiator may issue a transfer Y: a) if transfer Y is the        oldest, non-issued, non-retired transfer among the set of        transfer requests it has with matching CONNID, or b) if all of        the older non-retired transfers with matching CONNID are        currently issued to the same target as transfer Y. If issued        under this provision, transfer Y is considered pipelined with        the older non-retired transfers.    -   2. A target that responds to a transfer X in such a way that the        initiator might not retire the transfer must respond BUSY to all        later transfers with the same CONNID as transfer X that are        pipelined with X.

Note that an older transfer Y that is issued after a newer transfer Xwith matching CONNID is not considered pipelined with X, even if YIssues before X completes. This situation is illustrated in FIG. 7. Iftarget A has a resource conflict that temporarily prevents it fromaccepting DATAE0 associated with the WRITE ADDRE0 from cycle 1, then Aresponds BUSY. Step 2 of the foregoing algorithm requires that A alsoreject (using BUSY) any other pipelined transfers from the same CONNID(in this case, CONNID 1), since the initiator cannot possibly know aboutthe resource conflict until after the REQ-RESP latency has passed. Thus,target A must BUSY the WRITE ADDRE1 that is issued in cycle 3, becauseit has the same CONNID and was issued before the initiator couldinterpret the BUSY response to the first write transfer, and is thus apipelined transfer. Furthermore, the second attempt (issued in cycle 4)of the WRITE ADDRE0 transfer is allowed to complete because it is not apipelined transfer, even though it overlaps the cycle 3 WRITE ADDRE1transfer.

Note that target A determines that the cycle 4 write is not pipelinedwith any earlier transfers because of when it occurs and which CONNID itpresents, and not because of either the CMD nor the ADDR values. Step 1of the algorithm guarantees that an initiator will only issue a transferthat is the oldest non-issued, non-retired transfer within a givenconnection. Thus, once the first WRITE ADDRE0 receives the BUSY responsein cycle 3, it is no longer issued, and so it becomes the only CONNID=1transfer eligible for issue. It is therefore impossible for a properlyoperating initiator to issue a pipelined transfer in cycle 4, given thatan initial cycle 1 transfer received a BUSY response and the REQ-RESPlatency is two cycles.

One embodiment of the initiator maintains a time-ordered queueconsisting of the desired transfers within a given CONNID. Each transferis marked as non-issued and non-retired as they are entered into thequeue. It is further marked as pipelined if the immediately older entryin the queue is non-retired and addresses the same target; otherwise,the new transfer is marked non-pipelined. Each time a transfer issues itis marked as issued. When a transfer completes (i.e., when the RESPcycle is finished) the transfer is marked non-issued. If the transfercompletes successfully, it is marked as retired and may be deleted fromthe queue. If the transfer does not complete successfully, it willtypically be re-attempted, and thus can go back into arbitration forre-issue. If the transfer does not complete successfully, and it willnot be re-attempted, then it should not be marked as retired until thenext transfer, if it exists, is not marked as issued. This restrictionprevents the initiator logic from issuing out of order. As the oldestnon-Retired transfer issues, it is marked as issued. This allows thesecond-oldest non-retired transfer to arbitrate to issue until the oldertransfer completes (and is thus marked as non-issued), if it is markedas pipelined.

An embodiment of the target implementation maintains a time-orderedqueue whose depth matches the REQ-RESP latency. The queue operates offof the bus clock, and the oldest entry in the queue is retired on eachbus cycle; simultaneously, a new entry is added to the queue on each buscycle. The CONNID from the current REQ phase is copied into the newqueue entry. In addition, if the current REQ phase contains a validtransfer that selects the target (via the External Address), then“first” and “busy” fields in the new queue entry may be set; otherwise,the first and busy bits are cleared. The first bit will be set if thecurrent transfer will receive a BUSY response (due to a resourceconflict) and no earlier transfer in the queue has the same CONNID andhas its first bit set. The first bit implies that the current transferis the first of a set of potentially-pipelined transfers that will needto be BUSY'd to enforce ordering. The busy bit is set if either thetarget has a resource conflict or one of the earlier transfers in thequeue has the same CONNID and has the first bit set. This logic enforcesthe REQ-RESP pipeline latency, ensuring that the target accepts nopipelined transfers until the initiator can react to the BUSY responseto the transfer marked first.

Application of the algorithm to the initiators and targets in thecommunication system provides the ability to pipeline transfers (whichincreases per-connection bandwidth and reduces total transactionlatency) while maintaining transaction ordering. The algorithm thereforefacilitates high per-connection performance. The fundamental interleavedstructure of the pipelined bus allows for high system performance,because multiple logical transactions may overlap one another, thusallowing sustained system bandwidth that exceeds the peak per-connectionbandwidths. For instance, FIG. 8 demonstrates a system configuration inwhich initiator E needs to transfer data to target A on every other buscycle, while initiator D requests data from target B on every other buscycle. Since the communication system supports fine interleaving (perbus cycle), the transactions are composed of individual transfers thatissue at the natural data rate of the functional blocks; this reducesbuffering requirements in the functional blocks, and thus reduces systemcost. The total system bandwidth in this example is twice the peakbandwidth of any of the functional blocks, and thus high systemperformance is realized.

The present invention adds additional system-level improvements in thearea of efficiency and predictability. First, the connection identifierallows the target to be selective in which requests it must reject topreserve in-order operation. The system only need guarantee orderingamong transfers with the same CONNID, so the target must reject (usingBUSY) only pipelined transfers. This means that the target may accepttransfers presented with other CONNID values even while rejecting aparticular CONNID. This situation is presented in FIG. 9, which adds aninterleaved read transfer from initiator D to the pipelined writetransfer of FIG. 7. All four transfers in FIG. 9 select target A, and Ahas a resource conflict that prevents successful completion of the WRITEADDRE0 that issues in cycle 1. While the rejection of the first writeprevents A from accepting any other transfers from CONNID 1 until cycle4, A may accept the unrelated READ ADDRD0 request of cycle 2 if A hassufficient resources. Thus, overall system efficiency is increased,since fewer bus cycles are wasted (as would be the case if target Acould not distinguish between connections).

Second, in one embodiment the connection identifier allows the target tochoose which requests it rejects. The target may associate meanings suchas transfer priority to the CONNID values, and therefore decide whichrequests to act upon based upon a combination of the CONNID value andthe internal state of the target. For instance, a target might haveseparate queues for storing transfer requests of different priorities.Referring to FIG. 9, the target might have a queue for low priorityrequests (which present with an odd CONNID) and a queue for highpriority requests (which present with an even CONNID). Thus, the CONNID1 WRITE ADDRE0 request of cycle 1 would be rejected if the low-priorityqueue were full, whereas the CONNID 2 READ ADDRD0 transfer could becompleted successfully based upon available high-priority queueresources. Such differences in transfer priorities are very common inhighly-integrated electronic systems, and the ability for the target todeliver higher quality of service to higher priority transfer requestsadds significantly to the overall predictability of the system.

As FIG. 9 implies, the algorithm described above allows a target toactively satisfy transfer requests from multiple CONNID values at thesame time. Thus, there may be multiple logical transactions in flight toand/or from the same target, provided that they have separate CONNIDvalues. Thus, the present invention supports multiple connections pertarget functional block.

Additionally, an initiator may require the ability to present multipletransactions to the communications system at the same time. Such acapability is very useful for initiator such as direct memory access(DMA) devices, which transfer data between two targets. In such anapplication, the DMA initiator would present a read transaction using afirst CONNID to a first target that is the source of the data, andfurthermore present a write transaction using a second CONNID to asecond target that is the data destination. At the transfer level, theread and write transfers could be interleaved. This reduces the amountof data storage in the DMA initiator, thus reducing system cost. Such anarrangement is shown in FIG. 10, where initiator E interleaves pipelinedread transfers from target A with pipelined write transfers to target B.Thus, the present invention supports multiple connections per initiatorfunctional block.

The control structures required to support implementation of the presentinvention, as described above with respect to the algorithm, are simpleand require much less area than the data buffering area associated withtraditional protocols that do not provide efficient fine interleaving oftransfers. Thus, the present invention minimizes communication systemarea and complexity, while delivering high performance and flexibility.

Finally, the CONNID values that are associated with particular initiatortransactions should typically be chosen to provide useful informationsuch as transfer priorities but also to minimize implementation cost. Itis useful to choose the specific CONNID values at system design time, sothe values can be guaranteed to be unique and can be ordered to simplifycomparison and other operations. Furthermore, it is frequently useful tobe able to change the CONNID values during operation of thecommunications system so as to alter the performance and predictabilityaspects of the system. Preferred implementations of the presentinvention enable flexible system configuration by storing the CONNIDvalues in ROM or RAM resources of the functional blocks, so they may bereadily re-configured at either system build time or system run time.

FIG. 11 shows an interconnect 1010, which is a point-to-pointinterconnect as shown in FIG. 4. Interconnect 1010 includes additionalsignals as compared to the protocol described with reference to FIG. 5.As will be explained below, some of the additional signals areparticularly useful as signals sent over point-to-point interconnectssuch as interconnects 1010. The protocol of interconnect 1010 controlspoint-to-point transfers between a master entity 1102 and a slave entity1104 over a dedicated (non-shared) interconnect. Referring to FIG. 4, amaster entity may be, for example, initiator functional block 1002 ortarget interface module 1006. A slave entity may be, for example,initiator interface module 1004 or target functional block 1008.

Signals shown in FIG. 11 are labeled with signal names. In addition,some signal names are followed by a notation or notations in parenthesesor brackets. The notations are as follows:

-   -   (I) The signal is optional and is independently configurable    -   (A) The signal must be configured together with signals having        similar notations    -   (AI) The signal is independently configurable if (A) interface        modules exist [#] Maximum signal width

The clock signal is the clock of a connected functional block. Thecommand (Cmd) signal indicates the type of transfer on the interconnect.Commands can be issued independent of data. The address (Addr) signal istypically an indication of a particular resource that an initiatorfunctional block wishes to access. Request Accept (ReqAccept) is ahandshake signal whereby slave 1104 allows master 1102 to release Cmd,Addr and DataOut from one transfer and reuse them for another transfer.If slave 1104 is busy and cannot participate in a requested transfer,master 1102 must continue to present Cmd, Addr and DataOut. DataOut isdata sent from a master to a slave, typically in a write transfer.DataIn typically carries read data.

Response (Resp) and DataIn are signals sent from slave 1104 to master1102. Resp indicates that a transfer request that was received by slave1 104 has been serviced. Response accept (RespAccept) is a handshakesignal used to indicate whether the master allows the slave to releaseResp and DataIn.

Signals Clock, Cmd, Addr, DataOut, ReqAccept, Resp, DataIn, andRespAccept, in one embodiment, make up a basic set of interface modulesignals. For some functional blocks, the basic set may be adequate forcommunication purposes.

In other embodiments, some or all of the remaining signals of bus 1012may be used. In one embodiment, Width is a three-bit signal thatindicates a width of a transfer and is useful in a connection thatincludes transfers of variable width. Burst is a multibit signal thatallow individual commands to be associated within a connection. Burstprovides an indication of the nature of future transfers, such as howmany there will be and any address patterns to be expected. Burst has astandard end marker. Some bits of the Burst field are reserved foruser-defined fields, so that a connection may be ignorant of somespecific protocol details within a connection.

Interrupt and error signals are an important part of most computersystems. Interrupt and error signals generated by initiator or targetfunctional blocks are shown, but the description of their functionalityis dependent upon the nature of a particular functional block and is notimportant to understanding the invention.

Request Thread Identifier (ReqThreadID), in one embodiment, is afour-bit signal that provides the thread number associated with acurrent transaction intended for slave 1104. All commands executed witha particular thread ID must execute in order with respect to oneanother, but they may execute out of order with respect to commands fromother threads. Response Thread Identifier (RespThreadID) provides athread number associated with a current response. Because responses in athread may return out of order with respect to other threads,RespThreadID is necessary to identify which thread's command is beingresponded to. In one embodiment, ReqThreadID and RespThreadID areoptional signals, but if one is used, both must be used.

Request Thread Busy (ReqThreadBusy) allows the slave to indicate to themaster that it cannot take any new requests associated with certainthreads. In one embodiment, the ReqThreadBusy signal is a vector havingone signal per thread, and a signal asserted indicates that theassociated thread is busy.

Response Thread Busy (RespThreadBusy) allows the master to indicate tothe slave that it cannot take any responses (e.g., on reads) associatedwith certain threads. The RespThreadBusy signal is a vector having onesignal per thread, and a signal asserted indicates that the associatedthread is busy.

Request Connection Identifier (ReqConnID) provides the CONNID associatedwith the current transaction intended for the slave. CONNIDs provide amechanism by which a system entity may associate particular transactionswith the system entity. One use of the CONNID is in establishing requestpriority among various initiators. Another use is in associating actionsor data transfers with initiator identity rather than the addresspresented with the transaction request.

The embodiment of FIG. 11 provides end-to-end connection identificationwith CONNID as well as point-to-point, or more local identification withThread ID. A Thread ID is an identifier of local scope that simplyidentifies transfers between the interface module and its connectedfunctional block. In contrast, the CONNID is an identifier of globalscope that identifies transfers between two interface modules (and, ifrequired, their connected functional blocks).

A Thread ID should be small enough to directly index tables within theconnected interface module and functional block. In contrast, there areusually more CONNIDs in a system than any one interface module isprepared to simultaneously accept. Using a CONNID in place of a ThreadID requires expensive matching logic in the interface module toassociate a returned CONNID with specific requests or buffer entries.

Using a networking analogy, the Thread ID is a level-2 (data link layer)concept, whereas the CONNID is more like a level-3 (transport/sessionlayer) concept. Some functional blocks only operate at level-2, so it isundesirable to burden the functional block or its interface module withthe expense of dealing with level-3 resources. Alternatively, somefunctional blocks need the features of level-3 connections, so in thiscase it is practical to pass the CONNID through to the functional block.

Referring to FIG. 4, a CONNID is required to be unique when transferredbetween interface modules 1004 and 1006 on shared communications bus1012. The CONNID may be sent over a local interconnect, such asinterconnect 1010. In many cases, however, it is much more efficient touse only Thread ID between a functional block and its interface module.For example initiator functional block 1002 may not require all theinformation provided by the CONNID. Also, in some systems, multipleidentical initiator functional blocks 1002 may exist with the sameCONNID so that a particular target functional block 1008 receiving atransfer will not know which connection it is actually part of unlesslogic in initiator interface module 1004 translates the “local” CONNIDto a unique “global” CONNID. The design and implementation of such atranslation functionality in an interface module is complicated andexpensive. In such cases, the CONNID may be sent between interfacemodules over shared communications bus 1012 while the Thread ID is sentbetween a functional block and an interface module.

In the case of an initiator functional block, a one-to-one staticcorrespondence may exist between Thread ID and CONNID. For example ifthe Thread ID is “1”, a single CONNID is mapped for a particularinterface module, solving the problem of multiple, identical functionalblocks.

In the case of a target functional block, there is a one-to-one dynamiccorrespondence between a Thread ID and a CONNID. If a target functionalblock supports two simultaneous threads, the target interface moduleacquires the CONNID of an open connection and associates it with athread as needed. For example, a target interface module receives aCONNID of “7”, and then maps CONNID 7 to thread “0”. Thereafter, alltransfers with CONNID 7 are associated with thread 0 until connection 7is closed.

Referring to FIG. 12, an example of a use of Thread ID, consider aseries of identical direct memory access (DMA) engines in a system. InFIG. 12, elements 1202 are identical DMA engines, each connected to aninitiator interface module 1204. Initiator interface modules 1204 areconnected to shared communications bus 1212. Target interface module1206 is also connected to shared communications bus 1212 and transmitsdata from bus 1212 to DRAM controller 1208, which is a target functionalblock. Target interface module 1206 is connected to DRAM controller 1208by interconnect 1214. DRAM controller 1208 controls access to DRAM 1213.

A DMA a engine is an example of an initiator functional block that alsofunctions as a target functional block. When the DMA engine isprogrammed by software, it acts as a target. Thereafter, the DMA engineis an initiator. Because a DMA engine performs both read and writeoperations, two connections can be associated with a single DMA engine.If some buffering is available in the DMA engine, read and writeoperations may be decoupled so that both types of operations can beperformed concurrently. A read may occur from a long latency storagedevice which requires the read data to be buffered on the DMA enginebefore a write operation writes the data. In one embodiment, each of DMAengines 1202 uses a Thread ID to identify the read stream and adifferent Thread ID to identify the write stream. The DMA engine doesnot require more information, such as what other functional blockparticipates in a transaction. Therefore, a CONNID is not required to besent from the DMA engine 1202 to a connected interface module 1204.Mapping of a Thread ID to a CONNID occurs in the interface module 1204.

In one embodiment, each initiator interface module 1204 maps a uniqueCONNID to each of two Thread IDs from a connected DMA engine 1202. Eachof DMA engines 1202 use a single bit, for example, Thread ID of FIG. 11,to distinguish between its two threads. For each transfer over sharedcommunications bus a unique CONNID is sent to target interface module1206. The CONNID may include priority information, for example,assigning high priority to requests for graphics data. The high prioritygraphics data request is immediately serviced by DRAM controller 1208while lower priority request may be required to wait.

Because intelligence is designed into the interface modules and thecommunications protocols, less intelligence is required of thefunctional block such as the DRAM controller 1208 and the DMA engines1202. This has the advantage of making functional blocks more portableor reusable as systems evolve. For example, a DMA engine used for a highpriority application may be switched with a DMA engine used for a lowerpriority application simply by changing their respective connectedinterface modules.

In one embodiment, target and initiator interface modules are programmedat the transistor level so that their precise function, including theirCONNID assignment, is fixed at power-up. In another embodiment, thedesign of interface modules is in RAM so that the interface module is areprogrammable resource. In this case, the interface module isreprogrammed, including reassignment of CONNIDs, by software.

The present invention has been described in terms of specificembodiments. For example, embodiments of the present invention have beenshown as systems of particular configurations, including communicationsbuses using particular protocols. One of ordinary skill in the art willrecognize that modifications may be made without departing from thespirit and scope of the invention as set forth in the claims. Forexample, the present may be used in systems employing sharedcommunications structures other than buses, such as rings, cross-bars,or meshes.

1. A communication system comprising: at least two functional blocks,wherein a first functional block communicates with a second functionalblock by establishing a connection, wherein the connection is a logicalstate in which data may pass between the first functional block and thesecond functional block; and a communication medium configured to carrya plurality of signals between interface modules; an initiatorfunctional block configured to send transfer requests having a threadidentifier to indicate a transaction stream that a data transfer is partof; an initiator interface module coupled to the communication medium,and coupled to receive the initiator functional block transfer requests,said initiator interface module mapping a received thread identifier toa connection identifier, said connection identifier configured to besent with a transfer request from the initiator interface module overthe communication medium, the connection identifier comprising amulti-bit value that encodes information including a transfer priority,a transfer order, and a functional block that originated the transfer,the connection identifier is one of a plurality of connectionidentifiers associated with the initiator functional block; a targetinterface module coupled to the communication medium, and coupled to atarget functional block.
 2. A communication system comprising: at leasttwo functional blocks, wherein a first functional block communicateswith a second functional block by establishing a connection, wherein theconnection is a logical state in which data may pass between the firstfunctional block and the second functional block; and a communicationmedium configured to carry a plurality of signals between interfacemodules; an initiator interface module coupled to the communicationmedium, and coupled to an initiator functional block; a target interfacemodule coupled to the communication medium to receive transfer requestshaving a connection identifier, said received connection identifierhaving been previously configured to be sent with a transfer requestfrom the initiator interface module over the communication medium, theconnection identifier comprising a multi-bit value that encodesinformation including a transfer priority, a transfer order, and afunctional block that originated the transfer, the connection identifieris one of a plurality of connection identifiers associated with theinitiator functional block, said target interface module mapping areceived connection identifier to a thread identifier to indicate atransaction stream that a data transfer is part of; and a targetfunctional block coupled to the target interface module to receivetransfer requests having the thread identifier.